<?php
	header('content-type:text/html;charset=utf-8');
	$mysql=@mysql_connect('localhost','root','12345678');//@容错
	if(!$mysql){
		die('数据库链接错误'.mysql_error());
	}
	mysql_select_db('yintai');
	mysql_query('SET NAMES UTF8');
	
	$query='select * from nvzhuang';
	$result=mysql_query($query);
	$arr=array();
	$query2='select * from nvtong';
	$result2=mysql_query($query2);
	$arr2=array();
	
	for($i=0;$i<mysql_num_rows($result);$i++){
		$arr[$i]=mysql_fetch_array($result,MYSQL_NUM);
		$arr2[$i]=mysql_fetch_array($result2,MYSQL_NUM);
	}
	$arr3=array($arr,$arr2);
	echo json_encode($arr3);
    
	mysql_close($mysql);
	?>